package com.nervenets.web.controller.handler.user.user;

import com.nervenets.web.annotation.NeedValidation;
import com.nervenets.web.controller.handler.common.TokenParams;
import com.nervenets.web.validation.Type;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class UserWeixinBindParams extends TokenParams {
    @NeedValidation(type = Type.NOTEMPTY, description = "微信返回的openId")
    private String openId;
    @NeedValidation(type = Type.NOTEMPTY, description = "微信返回的unionId")
    private String unionId;
    @NeedValidation(type = Type.NOTEMPTY, description = "微信返回的nickname")
    private String nickname;
    @NeedValidation(type = Type.NOTEMPTY, description = "微信返回的headImgUrl")
    private String headImgUrl;
    @NeedValidation(type = Type.NOTEMPTY, description = "微信返回的sex")
    private int sex;
}
